package com.hoodbrains.insideloc.locator;

import java.util.Comparator;

public class ShopComparator  implements Comparator<SuperMarketPOI>{

	public ShopComparator() {
		super();
	}

	public int compare(SuperMarketPOI object1, SuperMarketPOI object2) {
		// starting by testing distance
		int layer1 = (int) object1.getDistance();
		int layer2 = (int) object2.getDistance();

		return layer1 - layer2;
	}

}
